/**
 * 
 */
package com.hjx.web;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author huangjixin
 * 2012-7-27, 下午3:18:50
 */
public class SessionListener implements HttpSessionListener {
	static Logger logger = LoggerFactory.getLogger(SessionListener.class);
	/* (non-Javadoc)
	 * @see javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent)
	 */
	@Override
	public void sessionCreated(HttpSessionEvent event) {
		logger.debug("创建会话：" + event.getSession().getId());
	}

	/* (non-Javadoc)
	 * @see javax.servlet.http.HttpSessionListener#sessionDestroyed(javax.servlet.http.HttpSessionEvent)
	 */
	@Override
	public void sessionDestroyed(HttpSessionEvent event) {
		logger.debug("销毁会话：" + event.getSession().getId());
	}

}
